package cn.skyquant.quant4j.service.boot.model.authority;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface UserRepository extends CrudRepository<User, Integer> {
    List<User> findByRoles(Role role);
    Optional<User> findByTel(String tel);
    Optional<User> findByName(String name);
}
